package Logic;

import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.Date;

public class Log {
	public static void Write(String msg) {
		Date currentDate = new Date();
		String strLog = currentDate.toString() + ":    " + msg;
		try {
			FileOutputStream fos = new FileOutputStream(new File("LogFile.txt"), true);
			PrintWriter out = new PrintWriter(fos);
			out.println(strLog);
			out.close();
			fos.close();
		} catch (Exception e) {
			System.out.println(e.getMessage().toString());
			// TODO: handle exception
		}
	}
}
